package com.shengsiyuan.lesson7;

public class Generic<T1, T2> {

	T1 t1;
	T2 t2;
	/**
	 * @return the t1
	 */
	public T1 getT1() {
		return t1;
	}
	/**
	 * @param t1 the t1 to set
	 */
	public void setT1(T1 t1) {
		this.t1 = t1;
	}
	/**
	 * @return the t2
	 */
	public T2 getT2() {
		return t2;
	}
	/**
	 * @param t2 the t2 to set
	 */
	public void setT2(T2 t2) {
		this.t2 = t2;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Generic<Integer, Boolean> foo = new Generic<Integer, Boolean>();
		foo.setT1(new Integer(-10));
		foo.getT1();
		System.out.println(foo.getT1());
	}

}
